import request from '@/utils/request'

// 查询列表
export function list(query) {
  return request({
    url: '/service/sales/list',
    method: 'get',
    params: query
  })
}

// 新增
export function add(data) {
  return request({
    url: '/service/sales',
    method: 'post',
    data: data
  })
}

//选择框
export function getSelection() {
  return request({
    url: '/service/warehouse/optionSelect',
    method: 'get',
  })
}
